package com.itbaizhan.springsecuritydemo;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;

@SpringBootApplication
@MapperScan("com.itbaizhan.springsecuritydemo.mapper")
//开启注解  @Secured    代替配置类配置权限访问控制
//@EnableGlobalMethodSecurity(securedEnabled = true)
//@PreAuthorize
@EnableGlobalMethodSecurity(prePostEnabled = true)
public class SpringsecuritydemoApplication {

    public static void main(String[] args) {
        SpringApplication.run(SpringsecuritydemoApplication.class, args);
    }

}
